<template>
	<view class="themeItem">
		<navigator url="" class="box" v-if="!isMore">
			<image class="pic" src="../../common/images/classify1.jpg" mode="aspectFill"></image>
			<view class="mask">
				明星美女
			</view>
			<view class="tab">
				3天前更新
			</view>
		</navigator>
		<navigator url="" class="box more" v-if="isMore">
			<image class="pic" src="../../common/images/more.jpg" mode="aspectFill"></image>
			<view class="mask">
				<uni-icons type="more-filled" size="34" color="#fff"></uni-icons>
				<text class="text">更多</text>
			</view>			
		</navigator>
	</view>
</template>

<script setup>
defineProps({
	isMore:{
		type:Boolean,
		default:false
	}
})	
	
</script>

<style lang="scss" scoped>
.themeItem{
	.box{
		height: 340rpx;
		border-radius: 10rpx;
		overflow: hidden;
		// 相对定位
		position: relative;
		
		.pic{
			width: 100%;
			height: 100%;
		}
		.mask{
			width: 100%;
			height: 70rpx;
			//绝对定位
			position: absolute;
			bottom: 0;
			left: 0;
			font-size: 30rpx;
			//背景半透明效果
			background: rgba(0,0,0,0.2);
			color: #fff;
			display: flex;
			// 文在行居中
			align-items: center;
			//文字左右居中
			justify-content: center;
			//模糊滤镜
			backdrop-filter: blur(20rpx) ;
			//字体加粗
			font-weight: 600;
			font-size: 30rpx;
		}
		.tab{
			position: absolute;
			left: 0;
			top: 0;
			background: rgba(250,129,90,0.7);
			//模糊滤镜
			backdrop-filter: blur(20rpx) ;
			font-size: 22rpx;
			color: #fff;
			padding: 6rpx 14rpx;
			//标签右下角圆角
			border-radius: 0 0 20rpx 0;
			//标签缩小80%
			transform: scale(0.8);
			transform-origin:left top;
		}
	}
	.box .more{
		.mask{
			width: 100%;
			height: 100%;
			
			
		}
		.text{
			font-size: 28rpx;
		
		
		}
	}
}	

</style>